package com.design.proxy.st;

import com.design.proxy.Person;

/**
 * Created by yijy on 2018/3/16.
 */
public class StudentProxy implements Person {

    Student student;

    public StudentProxy(Person  student) {
        if(student.getClass() == Student.class){
            this.student = (Student) student;
        }
    }

    @Override
    public void submitFee() {
        student.submitFee();
    }
}
